public class BankTest {
    public static void main(String[] args) {
        Bank.getBank();
    }
}
//饿汉式
class Bank{
    private Bank(){

    }
    private static Bank bank = new Bank();
    public static Bank getBank(){
        return bank;
    }

}